package com.qk.management.mapper;

import com.qk.dto.role.RoleDTO;
import com.qk.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 上官徵羽
 * @version 1.0
 * @since 2025-10-08 7:24
 */
@Mapper
public interface RoleMapper {
    List<Role> listPage(RoleDTO roleDTO);

    void deleteById(Integer id);

    void addRole(@Param("role") Role role);

    Role getRoleById(Integer id);

    void update(@Param("role") Role role);

    List<Role> listAll();

    Role getByName(String name);
}
